<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title> hAdmin- 主页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <link rel="shortcut icon" href="favicon.ico">
    <link href="__STATIC__/css/bootstrap.min.css" rel="stylesheet">
    <link href="__STATIC__/css/font-awesome.min.css" rel="stylesheet">
    <link href="__STATIC__/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/css/style.css" rel="stylesheet">
    <!--表单元素css-->
    <link href="__STATIC__/css/plugins/iCheck/custom.css" rel="stylesheet">

</head>

<body class="fixed-sidebar full-height-layout gray-bg">
<div id="wrapper">
    <!--左侧导航开始-->
    <include file="Public/left" title="left" />
    <!--左侧导航结束-->
    <!--右侧部分开始-->
    <div id="page-wrapper" class="gray-bg dashbard-1" style="height: auto;">
        <include file="Public/top" title="top" />
        <div class="row J_mainContent" id="content-main">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>添加网址</h5>
                    </div>

                    <div class="ibox-content">
                        <form action="{:U('UrlAnalysis/insert',array('tag'=>$tag))}" method="post" class="form-horizontal">
                            <if condition="$tag eq 'a'" >

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">网址名称</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" placeholder="请输入名称" name="caName">
                                    </div>
                                </div>
                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">网站地址</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" placeholder="请输入网址" name="caURL">
                                    </div>
                                </div>
                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">备注</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" placeholder="请输入备注" name="caRemarks">
                                    </div>
                                </div>
                                <div class="hr-line-dashed"></div>

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">是否默认</label>
                                    <div class="checkbox i-checks">
                                        <label>
                                            <input type="checkbox" name="levelURL"  value="0"> <i></i> 设为默认</label>
                                    </div>
                                </div>
                                <elseif condition="$tag eq 'b'"/>

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">网址名称</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" placeholder="请输入名称" name="cbName">
                                    </div>
                                </div>
                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">网站地址</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" placeholder="请输入网址" name="cbURL">
                                    </div>
                                </div>
                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">备注</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" placeholder="请输入备注" name="cbRemarks">
                                    </div>
                                </div>
                                <else/>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">推广跳转网址</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" placeholder="请输入名称" name="ccAnalysis">
                                    </div>
                                </div>
                           <!--     <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">选择绑定主域名</label>
                                    <div class="col-sm-10">
                                        <select name="ccOriginal">
                                            <foreach name="member" item="v" key="k">
                                                <option value="{$v.caid}">{$v.caurl}</option>
                                            </foreach>
                                        </select>
                                    </div>
                                </div>-->
                            </if>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <button class="btn btn-info" type="submit">确定</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

</body>

</html>    <!--右侧部分结束-->

<!-- 全局js -->
<script src="__STATIC__/js/jquery.min.js"></script>
<script src="__STATIC__/js/bootstrap.min.js"></script>
<script src="__STATIC__/js/content.js"></script>

<!-- iCheck -->
<script src="__STATIC__/js/plugins/iCheck/icheck.min.js"></script>
<script>
    $(document).ready(function() {
        $('.i-checks').iCheck({
            checkboxClass: 'icheckbox_square-green',
            radioClass: 'iradio_square-green',
        });
    });
</script>